<?php
if (!function_exists('storage_path')) {
    function storage_path($path='') {
        return (env('STORAGE_PATH') ? env('STORAGE_PATH') : base_path()) . ($path ? '/' . $path : $path);
    }
}